import { CUDBuilder, QueryBuilder } from '@/plugins/apijson'
import axios from '@/d2admin/plugin/axios'
import Condition from '@/plugins/apijson/condition'
import BaseApi, { PageParams } from '@/module/boot/base.api'

/**
 * 权限信息
 */
class ApiJsonAccessApi extends BaseApi {
  public page(pageParams: PageParams) {
    return axios.post(
      '/get',
      QueryBuilder.by('Access')
        .multi(true)
        .page(pageParams.start, pageParams.limit)
        .toJson()
    )
  }
}
export default new ApiJsonAccessApi()
